package week_01.Chicken.tribleLoop;

public class chicken1000 {
    public static void main(String[] args) {
        int hen = 0;  //母鸡
        int cock = 0;  //公鸡
        int chick = 0;  //小鸡
        long starTime = System.currentTimeMillis();
        long starTimeNS = System.nanoTime();
        for (int i = 1; i <= 200; i++) {
            for (int j = 1; j <= 333; j++) {
                for (int z = 1; z <= 3000; z++) {
                    cock = i;
                    hen = j;
                    chick = z;
                    if (cock + hen + chick == 1000) {
                    }
                }
            }

        }
        long endTime=System.currentTimeMillis();
        long endTimeNS = System.nanoTime();
        long time = endTime-starTime;
        long timeNS=endTimeNS-starTimeNS;
        System.out.println("运行时间"+time+"ms");
        System.out.println("运行时间"+timeNS+"ns");
    }
}
